// pages/QRcode/QRcode.js
var util = require('../../utils/util.js');
const app = getApp();
Page({

  /**
   * 页面的初始数据
   */
  data: {
    openid:"",
    name:"",
    id_number:"",
    room_id:"",
    time: "",
    qr_url:"",
    healthColor: "00a650"
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    //调用utils方法获取当前时间
    var TIME = util.formatTime(new Date());
    this.setData({
    time: TIME,
    });
    this.setData({
      openid:getApp().globalData.openid,
      name:getApp().globalData.name,
      id_number:getApp().globalData.id_number,
      room_id:getApp().globalData.room_id,
      qr_url:"http://59.110.42.131:8080/show"
    })

  },

})